﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Cms/Admin.Master" AutoEventWireup="true"
    CodeBehind="Series.aspx.cs" Inherits="Aij1.Cms.Series" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxHtmlEditor.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHtmlEditor" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxSpellChecker.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxSpellChecker" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxCallbackPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        </style>
    <script type="text/javascript">
        // <![CDATA[
        var fileNumber = 0;
        var fileName = "";
        var startDate = null;
        var photoIds = "";
        function Uploader_OnFileUploadStart() {
            startDate = new Date();
            ClearProgressInfo();
            pcProgress.Show();
        }
        function Uploader_OnFilesUploadComplete(s,e) {
            UpdateUploadButton();
            pcProgress.Hide();
            callP.PerformCallback('add:'+photoIds);
        }
        function Uploader_FileUploadComplete(s, e){
            photoIds += "," + e.callbackData;
        }

        //供Photo.aspx调用的方法
        function RefreshData() {
            callP.PerformCallback();
        }

        function UpdateUploadButton(s, e) {
            btnUpload.SetEnabled(uploader.GetText(0) != "");
        }
        function SetCurrentFileUploadingProgress(fileName, uploadedLength, fileLength) {
            lblFileName.SetText("当前文件进度: " + fileName);
            lblFileName.GetMainElement().title = fileName;
            lblCurrentUploadedFileLength.SetText(GetContentLengthString(uploadedLength) + " / " + GetContentLengthString(fileLength));
        }
        function SetTotalUploadingProgress(number, count, uploadedLength, totalLength) {
            lblUploadedFiles.SetText("总进度: " + number + ' / ' + count);
            lblUploadedFileLength.SetText(GetContentLengthString(uploadedLength) + " / " + GetContentLengthString(totalLength));
        }
        function ProgressChanged(s, args) {
            if (!pcProgress.IsVisible())
                return;
            if (args.currentFileName != fileName) {
                fileName = args.currentFileName;
                fileNumber++;
            }
            SetCurrentFileUploadingProgress(args.currentFileName, args.currentFileUploadedContentLength, args.currentFileContentLength);
            progress1.SetPosition(args.currentFileProgress);
            SetTotalUploadingProgress(fileNumber, args.fileCount, args.uploadedContentLength, args.totalContentLength);
            progress2.SetPosition(args.progress);
            UpdateProgressStatus(args.uploadedContentLength, args.totalContentLength);
        }
        function ClearProgressInfo() {
            SetCurrentFileUploadingProgress("", 0, 0);
            progress1.SetPosition(0);
            SetTotalUploadingProgress(0, 0, 0, 0);
            progress2.SetPosition(0);
            lblProgressStatus.SetText('用时:: 00:00:00 &ensp; 还需: 00:00:00 &ensp; 速度: ' + GetContentLengthString(0) + '/s');
            fileNumber = 0;
            fileName = "";
        }
        function UpdateProgressStatus(uploadedLength, totalLength) {
            var currentDate = new Date();
            var timeDiff = new Date(currentDate - startDate);
            var speed = uploadedLength / (timeDiff.valueOf() / 1000);
            var elapsedDate = timeDiff;
            elapsedDate.setHours(elapsedDate.getHours() + elapsedDate.getTimezoneOffset() / 60);
            var elapsedTime = GetTimeString(elapsedDate);
            var estimatedMilliseconds = Math.floor((totalLength - uploadedLength) / speed) * 1000;
            var estimatedDate = new Date(estimatedMilliseconds);
            estimatedDate.setHours(estimatedDate.getHours() + estimatedDate.getTimezoneOffset() / 60);
            var estimatedTime = GetTimeString(estimatedDate);
            lblProgressStatus.SetText('用时: ' + elapsedTime + ' &ensp; 还需: ' + estimatedTime + ' &ensp; 速度: ' + GetContentLengthString(speed) + '/s');
        }
        function GetContentLengthString(contentLength) {
            var sizeDimensions = ['bytes', 'KB', 'MB', 'GB', 'TB'];
            var index = 0;
            var length = contentLength;
            var postfix = sizeDimensions[index];
            while (length > 1024) {
                length = length / 1024;
                postfix = sizeDimensions[++index];
            }
            var numberRegExpPattern = /[-+]?[0-9]*(?:\.|\,)[0-9]{0,2}|[0-9]{0,2}/;
            var results = numberRegExpPattern.exec(length);
            length = results ? results[0] : Math.floor(length);
            return length.toString() + ' ' + postfix;
        }
        function GetTimeString(date) {
            var timeRegExpPattern = /\d{1,2}:\d{1,2}:\d{1,2}/;
            var results = timeRegExpPattern.exec(date.toTimeString());
            return results ? results[0] : "00:00:00";
        }

        function callback_CallbackComplete(s, e) {
            var key = e.result;
            btnSubmit.SetEnabled(true);
            if (e.parameter == 'pick') {
                txtKeywords.SetText(key);
                return;
            }

            lblTips.SetText(key);
            setTimeout("lblTips.SetText('')", 3000);
            document.getElementById('tbUpload').style.display = '';
            if (callback.cpAlbumId) {
                document.getElementById('hdnAlbumId').value = callback.cpAlbumId;
            }
            if (callback.cpImgSample) {
                document.getElementById("imgSample").src = callback.cpImgSample;
            }
            photoIds = "";
        }
        function checkData() {
            if (!txtTitle.GetText()) {
                alert("请输入标题。");
                txtTitle.Focus();
                return false;
            }
            if (!cbxCategory.GetText()) {
                alert('请选择栏目');
                cbxCategory.Focus();
                return false;
            }
            return true;
        }
        function submit_Click(s, e) {
            if (!checkData()) return;
            s.SetEnabled(false);
            lblTips.SetText("正在保存到服务器，请稍等......");
            callback.PerformCallback(getPhotoIds());
        }

        function getPhotoIds() {
            var divPhotos = document.getElementById('divPhotos');
            var c = divPhotos.childNodes;
            var ids = new Array();
            var idx =0;
            for (var i = 0; i < divPhotos.childNodes.length; i++) {
                if ( divPhotos.childNodes[i].id)
                ids[idx++] = divPhotos.childNodes[i].id.replace(/^photo/, '');
            }
            return ids.join(',');
        }

        function btnNew_Click(s, e) {
            var catId = cbxCategory.GetValue();
            location = 'Album.aspx?CatId=' + catId;
        }
        function editPhoto(obj) {
            pcPhoto.SetContentUrl('Photo.aspx?Id=' + obj.id.replace('photo', ''));
            pcPhoto.Show();
        }

        function photoMouseOver(obj) {
            obj.parentNode.style.backgroundColor = "#ccc";
            document.getElementById('op' + obj.id).style.visibility = '';
        }
        function photoMouseOut(obj) {
            obj.parentNode.style.backgroundColor = "";
            document.getElementById('op' + obj.id).style.visibility = 'hidden';
        }

        var sampleOid;
        function photoOp(obj, evt) {
            var oid = obj.id.replace(/^\w+photo/, '');
            var opName = obj.id.replace(/photo\d+/, '');
            var divPhotos = document.getElementById('divPhotos');
            var photo = document.getElementById('photo'+oid);
            switch (opName) {
                case 'del':
                    divPhotos.removeChild(photo);
                    break;
                case 'top':
                    document.getElementById('imgSample').src = document.getElementById('img' + oid).src;
                    document.getElementById('hdnSamplePhotoId').value = oid;
                    break;
                case 'up':
                    var prev = getPrevs(photo);
                    if (prev) divPhotos.insertBefore(photo, prev);
                    break;
                case 'down':
                    var next = getNext(photo);
                    if (next) divPhotos.insertBefore(next, photo);
                    break;
                default:
                    alert('不识别的操作:' + obj.id);
                    break;
            }

            if (window.event) {
                event.cancelBubble = true;
            } else if (evt) {
                evt.stopPropagation();
            }
        }

        function getPrevs(node) {
            do {
                node = node.previousSibling;
            }
            while (node != null && !node.id);
            return node;
        }

        function getNext(node) {
            do {
                node = node.nextSibling;
            }
            while (node != null && !node.id);
            return node;
        }

        function btnAddUrl_Click(s, e) {
            var id = document.getElementById('hdnAlbumId').value;
            if (!id) {
                alert('请先保存基本信息');
            }
            else{
                pcPhoto.SetContentUrl('Photo.aspx?AlbumId=' + id);
                pcPhoto.Show();
            }
        }

        function HidePhotoWindow() {
            pcPhoto.Hide();
        }

        function btnNew_Click(s, e) {
            var catId = cbxCategory.GetValue();
            location = 'Series.aspx?CatId=' + catId;
        }
        function txtKeywords_ButtonClick(s, e) {
            txtKeywords.SetText("正在从本文提取关键词...");
            var html = edtContent.GetHtml();
            html = html.replace(/>\s*　　/gm, ">").replace(/>\s*&nbsp;&nbsp;/gm, "");
            if (!txtIntro.GetText()) {
                var intro = html.replace(/^([^<]*)<[\w\W]*/m, "$1");
                if (!intro || intro.length < 10) {
                    intro = html.replace(/<[^>]*>([^<]*)<[^>]*>[\w\W]*/m, "$1");
                }
                txtIntro.SetText(intro);
            }
            edtContent.SetHtml(html);
            btnSubmit.SetEnabled(false);
            callback.PerformCallback('pick');
        }
  // ]]>
    </script>
</asp:Content>
<asp:Content ID="CT2" ContentPlaceHolderID="PH" runat="server">
    <input type="hidden" name="Id" value="<%=A==null?0:A.Oid %>" id="hdnAlbumId" />
    <input type="hidden" name="SamplePhotoId" value="<%=ImgSampleOid %>" id="hdnSamplePhotoId" />
    <div style="width:960px">
   <table style="width:100%">
        <tr>
            <td width="80">
                商品名称:
            </td>
            <td colspan="3">
                <dx:ASPxTextBox ID="txtTitle" runat="server" Width="100%" MaxLength="100" 
                    ClientInstanceName="txtTitle">
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
                现价:</td>
            <td>
                            <dx:ASPxTextBox ID="txtPrice" runat="server" Width="130px" MaxLength="30">
                            </dx:ASPxTextBox>
            </td>
            <td width="50" align="right">
                            原价:
                        </td>
            <td>
                            <dx:ASPxTextBox ID="txtOriginalPrice" runat="server" Width="130px" 
                                MaxLength="30">
                            </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
                栏目:
            </td>
            <td>
                            <dx:ASPxComboBox ID="cbxCategory" runat="server" TextField="Title" ValueField="Oid"
                                ClientInstanceName="cbxCategory" ValueType="System.Int32" Width="130px">
                            </dx:ASPxComboBox>
            </td>
            <td align="right">
                            作者:
                        </td>
            <td>
                            <dx:ASPxTextBox ID="txtAuthor" runat="server" Width="130px" MaxLength="30">
                            </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
                发表日期:</td>
            <td>
                <dx:ASPxTimeEdit ID="dtDisplayTime" runat="server" EditFormat="DateTime" 
                    ClientInstanceName="dtDisplayTime" Width="130px">
                </dx:ASPxTimeEdit>
            </td>
            <td align="right">
                状态:</td>
            <td>
                            <dx:ASPxComboBox ID="cbxStatus" runat="server" Width="130px">
                            </dx:ASPxComboBox>
                        </td>
        </tr>
        <tr>
            <td>
                关键词:</td>
            <td colspan="3">
                <dx:ASPxButtonEdit ID="txtKeywords" runat="server" ClientInstanceName="txtKeywords"
                    Width="100%" MaxLength="100">
                    <ClientSideEvents ButtonClick="txtKeywords_ButtonClick" />
                    <Buttons>
                        <dx:EditButton Text="提取">
                        </dx:EditButton>
                    </Buttons>
                </dx:ASPxButtonEdit>
            </td>
        </tr>
        </table>
   <table width="100%">
        <tr>
         <td valign="top" width="80">
                商品简介:</td>
         <td valign="top">
                <dx:ASPxMemo ID="txtIntro" runat="server" Width="100%" Rows="6" ClientInstanceName="txtIntro">
                </dx:ASPxMemo>
            </td>
               <td valign="top" align="center" width="80">
                              商品代表图片:</td>
               <td valign="top" align="center" width="125">
                               <div class="snapshot">
 <img id="imgSample" src="<%=ImgSampleUrl %>" border="0" /></div></td>
        </tr>
        </table>
   <table class="style1">
                    <tr>
                        <td width="80">
                            详细介绍:</td>
                        <td>
                <dx:ASPxHtmlEditor ID="edtContent" runat="server" ClientInstanceName="edtContent" 
                                Height="300px" Width="600px">
                    <Toolbars>
                        <dx:HtmlEditorToolbar Name="StandardToolbar2">
                            <Items>
                                <dx:ToolbarParagraphFormattingEdit Width="120px">
                                    <Items>
                                        <dx:ToolbarListEditItem Text="Normal" Value="p" />
                                        <dx:ToolbarListEditItem Text="Heading  1" Value="h1" />
                                        <dx:ToolbarListEditItem Text="Heading  2" Value="h2" />
                                        <dx:ToolbarListEditItem Text="Heading  3" Value="h3" />
                                        <dx:ToolbarListEditItem Text="Heading  4" Value="h4" />
                                        <dx:ToolbarListEditItem Text="Heading  5" Value="h5" />
                                        <dx:ToolbarListEditItem Text="Heading  6" Value="h6" />
                                        <dx:ToolbarListEditItem Text="Address" Value="address" />
                                        <dx:ToolbarListEditItem Text="Normal (DIV)" Value="div" />
                                    </Items>
                                </dx:ToolbarParagraphFormattingEdit>
                                <dx:ToolbarFontNameEdit>
                                    <Items>
                                        <dx:ToolbarListEditItem Text="宋体" Value="宋体" />
                                        <dx:ToolbarListEditItem Text="楷体" Value="楷体" />
                                        <dx:ToolbarListEditItem Text="黑体" Value="黑体" />
                                        <dx:ToolbarListEditItem Text="隶书" Value="隶书" />
                                        <dx:ToolbarListEditItem Text="仿宋" Value="仿宋" />
                                        <dx:ToolbarListEditItem Text="幼圆" Value="幼圆" />
                                        <dx:ToolbarListEditItem Text="微软雅黑" Value="微软雅黑" />
                                        <dx:ToolbarListEditItem Text="Times New Roman" Value="Times New Roman" />
                                        <dx:ToolbarListEditItem Text="Tahoma" Value="Tahoma" />
                                        <dx:ToolbarListEditItem Text="Verdana" Value="Verdana" />
                                        <dx:ToolbarListEditItem Text="Arial" Value="Arial" />
                                        <dx:ToolbarListEditItem Text="MS Sans Serif" Value="MS Sans Serif" />
                                        <dx:ToolbarListEditItem Text="Courier" Value="Courier" />
                                    </Items>
                                </dx:ToolbarFontNameEdit>
                                <dx:ToolbarFontSizeEdit>
                                    <Items>
                                        <dx:ToolbarListEditItem Text="1 (8pt)" Value="1" />
                                        <dx:ToolbarListEditItem Text="2 (10pt)" Value="2" />
                                        <dx:ToolbarListEditItem Text="3 (12pt)" Value="3" />
                                        <dx:ToolbarListEditItem Text="4 (14pt)" Value="4" />
                                        <dx:ToolbarListEditItem Text="5 (18pt)" Value="5" />
                                        <dx:ToolbarListEditItem Text="6 (24pt)" Value="6" />
                                        <dx:ToolbarListEditItem Text="7 (36pt)" Value="7" />
                                    </Items>
                                </dx:ToolbarFontSizeEdit>
                                <dx:ToolbarBoldButton BeginGroup="True">
                                </dx:ToolbarBoldButton>
                                <dx:ToolbarItalicButton>
                                </dx:ToolbarItalicButton>
                                <dx:ToolbarUnderlineButton>
                                </dx:ToolbarUnderlineButton>
                                <dx:ToolbarStrikethroughButton>
                                </dx:ToolbarStrikethroughButton>
                                <dx:ToolbarJustifyLeftButton BeginGroup="True">
                                </dx:ToolbarJustifyLeftButton>
                                <dx:ToolbarJustifyCenterButton>
                                </dx:ToolbarJustifyCenterButton>
                                <dx:ToolbarJustifyRightButton>
                                </dx:ToolbarJustifyRightButton>
                                <dx:ToolbarBackColorButton BeginGroup="True">
                                </dx:ToolbarBackColorButton>
                                <dx:ToolbarFontColorButton>
                                </dx:ToolbarFontColorButton>
                            </Items>
                        </dx:HtmlEditorToolbar>
                    </Toolbars>
<SettingsImageUpload>
<ValidationSettings AllowedFileExtensions=".jpe, .jpeg, .jpg, .gif, .png" MultiSelectionErrorText="Attention! 

The following {0} files are invalid because they exceed the allowed file size ({1}) or their extensions are not allowed. These files have been removed from selection, so they will not be uploaded. 

{2}"></ValidationSettings>
</SettingsImageUpload>

<SettingsImageSelector>
<CommonSettings AllowedFileExtensions=".jpe, .jpeg, .jpg, .gif, .png"></CommonSettings>
</SettingsImageSelector>

<SettingsDocumentSelector>
<CommonSettings AllowedFileExtensions=".rtf, .pdf, .doc, .docx, .odt, .txt, .xls, .xlsx, .ods, .ppt, .pptx, .odp"></CommonSettings>
</SettingsDocumentSelector>
                </dx:ASPxHtmlEditor>
                        </td>
                    </tr>
                </table>

<table class="style1" id="tbUpload" style='display:<%=A.Oid<=0? "none":""%>'>
    <tr>
        <td width="80">
            相片上传:
        </td>
        <td>
            <dx:ASPxUploadControl ID="ASPxUploadControl1" runat="server" ClientInstanceName="uploader"
                Width="100%" UploadMode="Advanced" OnFileUploadComplete="UploadControl_FileUploadComplete">
                <AdvancedModeSettings EnableMultiSelect="True" />
                <ClientSideEvents FileUploadStart="Uploader_OnFileUploadStart"
                    FilesUploadComplete="Uploader_OnFilesUploadComplete" 
                    FileUploadComplete="Uploader_FileUploadComplete"
                    UploadingProgressChanged="ProgressChanged"
                    TextChanged="UpdateUploadButton" />
                <ValidationSettings MaxFileSize="41943040" AllowedFileExtensions=".jpg,.jpeg,.jpe,.gif,.png">
                </ValidationSettings>
            </dx:ASPxUploadControl>
        </td>
        <td width="10%">
            <dx:ASPxButton ID="btnUpload" runat="server" Text="上传" AutoPostBack="False" ClientInstanceName="btnUpload">
                <ClientSideEvents Click="function(s, e) { uploader.Upload(); }" />
            </dx:ASPxButton>
        </td>
        <td width="20%">
            <dx:ASPxButton ID="btnAddUrl" runat="server" Text="添加网络相片..." 
                AutoPostBack="False" ClientInstanceName="btnUpload" Width="120px">
                <ClientSideEvents Click="btnAddUrl_Click" />
            </dx:ASPxButton>
        </td>
    </tr>
</table>
<dx:ASPxCallbackPanel ID="callP" runat="server" Width="100%" 
                    ClientInstanceName="callP" oncallback="callP_Callback">
                    <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
<div id="divPhotos"><asp:Repeater ID="RP" runat="server"><ItemTemplate><div id='photo<%#Eval("Oid") %>' onclick="editPhoto(this)" 
                onmouseout="photoMouseOut(this)" onmouseover="photoMouseOver(this)" 
                style="text-align: center; cursor: pointer;float:left;border:1px solid #999;margin:5px;"><div 
id='opphoto<%#Eval("Oid") %>' style="text-align:right; height:17px; visibility:hidden"><img
src="Images/up.png" id='upphoto<%#Eval("Oid") %>' alt="上移" title="上移" onclick='photoOp(this, event)') /><img 
src="Images/down.png" id='downphoto<%#Eval("Oid") %>' alt="下移" title="下移" onclick='photoOp(this, event)') /><img 
src="Images/top.png" id='topphoto<%#Eval("Oid") %>' alt="置顶" title="置顶" onclick='photoOp(this, event)') /><img
src="Images/del.png" id='delphoto<%#Eval("Oid") %>' alt="删除" title="删除" onclick='photoOp(this, event)') /></div>
                <div class="snapshot">
                    <img src='<%#GetUrl(Eval("SnapShotUrl"))%>' alt='<%#Eval("Title")%>' id='img<%#Eval("Oid")%>' />
                </div>
                <p>
                    <b><%# Eval("Title") %></b>
                </p>
            </div>
</ItemTemplate></asp:Repeater></div>
                        </dx:PanelContent>
</PanelCollection>
                </dx:ASPxCallbackPanel>
<table class="style1">
        <tr>
            <td width="80">
                &nbsp;
            </td>
            <td>
                <table class="style1">
                    <tr>
                        <td width="100">
                            <dx:ASPxButton ID="btnSubmit" runat="server" AutoPostBack="False" Text="提交" Width="80px" ClientInstanceName="btnSubmit">
                                <ClientSideEvents Click="submit_Click" />
                            </dx:ASPxButton>
                        </td>
                        <td width="100">
                            <dx:ASPxButton ID="btnReturn" runat="server" AutoPostBack="False" Text="返回" Width="80px">
                                <ClientSideEvents Click="function(s, e) { history.back();}" />
                            </dx:ASPxButton>
                        </td>
                        <td width="100">
                            <dx:ASPxButton ID="btnNew" runat="server" Text="继续新建" Width="80px" AutoPostBack="False">
                                <ClientSideEvents Click="btnNew_Click" />
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxCallback ID="ASPxCallback1" runat="server" ClientInstanceName="callback"
                                OnCallback="ASPxCallback1_Callback" 
                                oncustomjsproperties="ASPxCallback1_CustomJSProperties">
                                <ClientSideEvents CallbackComplete="callback_CallbackComplete" />
                            </dx:ASPxCallback>
                            <dx:ASPxLabel ID="lblTips" runat="server" ClientInstanceName="lblTips" CssClass="tips">
                            </dx:ASPxLabel>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>
    <dx:ASPxPopupControl ID="pcProgress" runat="server" ClientInstanceName="pcProgress"
        Modal="True" HeaderText="正在上传" EnableAnimation="False" CloseAction="None" PopupHorizontalAlign="WindowCenter"
        PopupVerticalAlign="WindowCenter" Width="460px" AllowDragging="true" ShowPageScrollbarWhenModal="True"
        ShowCloseButton="False" ShowFooter="True">
        <ContentCollection>
            <dx:PopupControlContentControl ID="PCCC" runat="server" SupportsDisabledAttribute="True">
                <table style="width: 100%;">
                    <tr>
                        <td style="width: 100%;">
                            <div style="overflow: hidden; width: 280px;">
                                <dx:ASPxLabel ID="lblFileName" runat="server" ClientInstanceName="lblFileName" Text=""
                                    Wrap="False">
                                </dx:ASPxLabel>
                            </div>
                        </td>
                        <td class="NoWrap" align="right">
                            <dx:ASPxLabel ID="lblCurrentUploadedFileLength" runat="server" ClientInstanceName="lblCurrentUploadedFileLength"
                                Text="" Wrap="False">
                            </dx:ASPxLabel>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="TopPadding">
                            <dx:ASPxProgressBar ID="PB1" runat="server" Height="21px" Width="100%"
                                ClientInstanceName="progress1">
                            </dx:ASPxProgressBar>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div class="Spacer" style="height: 12px;">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100%;">
                            <dx:ASPxLabel ID="lblUploadedFiles" runat="server" ClientInstanceName="lblUploadedFiles"
                                Text="" Wrap="False">
                            </dx:ASPxLabel>
                        </td>
                        <td class="NoWrap" align="right">
                            <dx:ASPxLabel ID="lblUploadedFileLength" runat="server" ClientInstanceName="lblUploadedFileLength"
                                Text="" Wrap="False">
                            </dx:ASPxLabel>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="TopPadding">
                            <dx:ASPxProgressBar ID="PB2" runat="server" CssClass="BottomMargin"
                                Height="21px" Width="100%" ClientInstanceName="progress2">
                            </dx:ASPxProgressBar>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div class="Spacer" style="height: 12px;">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <dx:ASPxLabel ID="lblProgressStatus" runat="server" ClientInstanceName="lblProgressStatus"
                                Text="" Wrap="False">
                            </dx:ASPxLabel>
                        </td>
                    </tr>
                </table>
            </dx:PopupControlContentControl>
        </ContentCollection>
        <FooterTemplate>
            <table style="width: 100%;">
                <tr>
                    <td align="right">
                        <dx:ASPxButton ID="btnCancel" runat="server" AutoPostBack="False" Text="取消上传" ClientInstanceName="btnCancel"
                            Width="100px">
                            <ClientSideEvents Click="function(s, e) { uploader.Cancel(); }" />
                        </dx:ASPxButton>
                    </td>
                </tr>
            </table>
        </FooterTemplate>
        <FooterStyle>
            <Paddings Padding="5px" PaddingRight="10px" />
        </FooterStyle>
    </dx:ASPxPopupControl>
    <dx:ASPxPopupControl ID="pcPhoto" runat="server" ClientInstanceName="pcPhoto" 
        CloseAction="CloseButton" Modal="True" Width="830px" HeaderText="照片信息" 
        ShowSizeGrip="False" Height="600px" PopupHorizontalAlign="WindowCenter" 
        PopupVerticalAlign="WindowCenter">
    </dx:ASPxPopupControl>
</asp:Content>
